#include "Adapter.h"
#include "ChineseSocket.h"

std::string Adapter::AmericanInput() const
{
    std::string str= ChineseSockets->ChineseInput();
    transform(str.begin(), str.end(), str.begin(), ::tolower);
    return  "   |By Adapter|   " + str;
}

std::string Adapter::ChineseInput() const
{
    std::string str = AmericanSockets->AmericanInput();
    transform(str.begin(), str.end(), str.begin(), ::toupper);
    return "   |By Adapter|   " + str;
}